package com.example.hotel.web;

import com.example.hotel.service.RoomService;
import com.hotel.management.model.Room;
import java.util.List;

public class RoomController {
    private RoomService roomService = new RoomService();

    // 获取可用房间
    public List<Room> listAvailableRooms() {
        return roomService.getAvailableRooms();
    }

    // 预订房间
    public String bookRoom(int roomId, String guestName, String checkInDate, String checkOutDate) {
        return roomService.bookRoom(roomId, guestName, checkInDate, checkOutDate);
    }
}
